//
//  CountDownViewController.m
//  指纹识别
//
//  Created by lzy on 2018/4/25.
//  Copyright © 2018年 lzy. All rights reserved.
//

#import "CountDownViewController.h"
#import "CZCountDownView.h"
@interface CountDownViewController ()
{
    CZCountDownView *countDown;
}

@end

@implementation CountDownViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"倒计时";
    
    countDown = [[CZCountDownView alloc]init];
    countDown.frame = CGRectMake(100, 100, 200, 30);
    countDown.timestamp = 7*24*60*60+5*60*60+6*60+4;//时间戳
    countDown.backgroundImageName = @"search_k";
    countDown.timerStopBlock = ^{
        NSLog(@"时间停止");
    };
    [self.view addSubview:countDown];
    // Do any additional setup after loading the view.
}

- (void)dealloc{
    
    [countDown.timer invalidate];
    countDown.timer = nil;
    [countDown removeFromSuperview];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
